#ifndef GENIE_LED
#define GENIE_LED

enum LED_TYPE
{
   LED_OVERLOAD_100 = 0      //0
   , LED_OVERLOAD_90      //1
   , LED_OVERLOAD_80     //2
   , LED_TURN_OFF         //3
};

struct led
{
   enum
   {
      LED_GET_STATE
      , LED_FLASH_ON
      , LED_FLASH_OFF
   } eState;          // next state when "delay" becomes zero
   UINT16  wDelay;      // counter for cycles until next state
   UINT8  bCount;    // counter for number of pulses
   UINT8  fGround: 1;  // ground led request
   enum LED_TYPE eCode;
};

extern struct led LED_Data;

extern void LED_Process(void);

#endif
